{$CLEO .cs}


model.Load(#BALLAS1)
model.Load(#BALLAS2)
model.Load(#BALLAS3)
model.Load(#AT_BALLAS10)
model.Load(#AT_BALLAS9)
model.Load(#SA_BALLAS9)
model.Load(#SA_BALLAS8)
model.Load(#SA_BALLAS6)
model.Load(#SA_BALLAS7)
model.Load(#SA_BALLAS5)
model.Load(#SA_BALLAS5)
model.Load(#SA_BALLAS10)
model.Load(#AT_BALLAS11)
model.Load(#AK47)


model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_INGRAM)
model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_RUGER)
model.Load(#VC_INGRAM)
model.Load(#LC_M16)
model.Load(#VCS_SKORPION)
model.Load(#LCS_SHOTGSPA)

038B: load_requested_models

const
LCS_PYTHON =  191
LCS_LASER = 181
LCS_CHROMEGUN =  207
LCS_4k47 =  197
LCS_BUDDYSHOT = 166
VC_INGRAM = 133
LCS_SPAS12 = 193
LCS_UZI = 196
LCS_BASEBALLBAT = 164
LCS_CHAINSAW    = 170
LCS_MINIGUN = 186
LCS_M60 = 184
LCS_M21 = 183
LC_AK47 = 111  
VC_RUGER = 147 
LC_M16 = 117
LCS_KATANA =  179
VCS_M249 = 221
VCS_SKORPION  = 225
end 

10@ = object.Create(#AK47, 8481.0986, 7917.3589, 25.7679)
0382: set_object 10@ collision_detection 0
0750: set_object 10@ visibility 0
20@ = audiostream.Load3D("cleo\addons\Grassin.mp3")

audiostream.LinkToObject(20@, 10@)
audiostream.PerformAction(20@,resume)
audiostream.Loop(20@, 1)
while true 
wait 0 
 if
856D:  not    actor 0@ defined

then
009A: 0@ = create_actor_pedtype 8 model #SA_BALLAS5 at  8488.7852 7904.0503 25.8932
actor.Angle(0@ ) =  269.1624
actor.Health(0@) = 500
actor.GiveWeaponAndAmmo(0@,LCS_SPAS12   ,99999)
end


 if
856D:  not    actor 1@ defined

then
009A: 1@ = create_actor_pedtype 8 model #BALLAS1 at  8485.7187 7915.6987 25.7209
actor.Angle(1@ ) =  275.7337
actor.Health(1@) = 500
actor.GiveWeaponAndAmmo(1@,LCS_4k47   ,99999)
end

 if
856D:  not    actor 2@ defined

then
009A: 2@ = create_actor_pedtype 8 model #sa_BALLAS10 at  8490.1318 7934.8848 25.3072
actor.Angle(2@ )  = 274.3971
actor.Health(2@) = 500
actor.GiveWeaponAndAmmo(2@,LCS_PYTHON   ,99999)
end


 if
856D:  not    actor 3@ defined

then


009A: 3@ = create_actor_pedtype 8 model #SA_BALLAS9 at 8486.6875 7874.2246 26.1259
actor.Angle(3@ ) =  314.4152
actor.Health(3@) = 500
actor.GiveWeaponAndAmmo(3@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 4@ defined

then

009A: 4@ = create_actor_pedtype 8 model #BALLAS2 at  8483.708 7906.7251 31.6826
actor.Angle(4@ ) = 257.3961
actor.Health(4@) = 500
actor.GiveWeaponAndAmmo(4@,VC_RUGER   ,99999)
end 

if
856D:  not    actor 5@ defined
 
then

009A: 5@ = create_actor_pedtype 8 model #sa_BALLAS4 at  8485.2422 7926.915 31.6826
actor.Angle(5@ ) =   281.6468
actor.Health(5@) = 500
actor.GiveWeaponAndAmmo(5@,LCS_UZI   ,99999)
end

if
00FE:    actor $PLAYER_ACTOR sphere 0 in_sphere  8485.2422 7926.915 31.6826 radius 121.0 122.0 122.0
then
    audiostream.PerformAction(20@,resume) 
    if
     056D:     actor 0@ defined 
     then
        if
        actor.Dead(0@)
        then
         actor.RemoveReferences(0@)
        end 
     end 
    
    if
     056D:     actor 1@ defined 
     then
        if
        actor.Dead(1@)
        then
         actor.RemoveReferences(1@)
        end 
     end 
     
    if
     056D:     actor 2@ defined 
     then
        if
        actor.Dead(2@)
        then
         actor.RemoveReferences(2@)
        end 
     end 
     
    if
     056D:     actor 3@ defined 
     then
        if
        actor.Dead(3@)
        then
         actor.RemoveReferences(3@)
        end 
     end 
     
    if
     056D:     actor 4@ defined 
     then
        if
        actor.Dead(4@)
        then
         actor.RemoveReferences(4@)
        end 
     end 
     
    if
     056D:     actor 5@ defined 
     then
        if
        actor.Dead(5@)
        then
         actor.RemoveReferences(5@)
        end 
     end 
end  
 
         if or
         80FE:  not   actor $PLAYER_ACTOR sphere 0 in_sphere  8485.2422 7926.915 31.6826 radius 121.0 122.0 122.0
         $onmission == 0 
         //80FE: not   actor $PLAYER_ACTOR sphere 0 in_sphere 7720.4850 -8778.2680 1014.2270  radius 151.0 151.0 151.0
        
         then 
         audiostream.PerformAction(20@,PAUSE)   
            if
             056D:     actor 0@ defined     
            then
                   actor.RemoveReferences(0@)
          
            end
            if
             056D:     actor 1@ defined     
            then
                   actor.RemoveReferences(1@)
          
            end
            if
             056D:     actor 2@ defined     
            then
                   actor.RemoveReferences(2@)
          
            end
            if
             056D:     actor 3@ defined     
            then
                   actor.RemoveReferences(3@)
          
            end
            if
             056D:     actor 4@ defined     
            then
                   actor.RemoveReferences(4@)
          
            end
            if
             056D:     actor 5@ defined     
            then
                   actor.RemoveReferences(5@)
          
            end
            
            if
             $onmission == 0 
             then
             
             goto @end 
            break
            end
         end 
end 
:END
object.Destroy(10@)
audiostream.Release(20@)
END_THREAD